<template>
  <el-select :disabled="disabled" @change="handleChange($event)" :value="value" filterable :placeholder="text">
    <el-option v-for="item in dataOfArr" :key="item.value" :label="item.label" :value="item.value"></el-option>
  </el-select>
</template>

<script>
export default {
  props : {
    dataOfArr : {
      type : Array,
    },
    text : String,
    disabled : {
      default : false
    },
    value : {
      default : ''
    }
  },
  methods : {
    handleChange(e){
      this.$emit('changeSelect', e);
    }
  }
}
</script>

<style scoped>

</style>